package com.ververica.cdc.guass.source.jdbc;

import java.util.List;

public class SnapShotSplit extends TableSplit {

    // 快照分片需要的额外字段
    private final String snapshotId;
    private final long snapshotTimestamp;

    public SnapShotSplit(String tableName, List<String> splitColumns,
                         Object[] splitStart, Object[] splitEnd, String splitId, long snapshotTimestamp) {

        super(tableName, splitColumns, splitStart, splitEnd, splitId);
        this.snapshotId = splitId;
        this.snapshotTimestamp = snapshotTimestamp;
    }

    public String getSnapshotId() {
        return snapshotId;
    }

    public long getSnapshotTimestamp() {
        return snapshotTimestamp;
    }
}